package com.youngjun.gateway.service;

import com.youngjun.common.jpa.service.support.BaseService;
import com.youngjun.gateway.pojo.domain.Route;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.ApplicationEventPublisherAware;

import java.util.List;

/**
 * @author virgojun
 */
public interface RouteService extends BaseService<Route, String>, ApplicationEventPublisherAware, CommandLineRunner {

    List<Route> findAll(boolean useCache);

    void refresh();
}
